package com.web.dao;

import com.entity.Condition;
import com.entity.Employrecord;
import com.page.PageInfo;

import java.util.List;

public interface EmployrecordDao {
    public List<Employrecord> getAll() throws Exception;
    public    List<Employrecord> getEmployrecordsByPage(PageInfo pageInfo) throws Exception ;
    public int add(Employrecord employrecord) throws Exception ;


    /**
     * 根据主键 修改部分字段
     * @param employrecord
     * @return
     * @throws Exception
     */
    public int update(Employrecord employrecord) throws Exception ;

    /**
     * 根据条件分页搜索合同
     * @param pageInfo
     * @param conditions
     * @return
     * @throws Exception
     */
    public    List<Employrecord> searchEmployeesByPage(PageInfo pageInfo, List<Condition> conditions) throws Exception ;



}
